﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace agile_tool.userControl
{
    /// <summary>
    /// Interaction logic for buttonForNavigation.xaml
    /// </summary>
    public partial class buttonForNavigation : UserControl
    {
        public int num;
        public static int count = 0;
        public buttonForNavigation(string txt)
        {
            InitializeComponent();
            this.num = ++count;
            tbText.Text = txt;
            this.MouseEnter += new MouseEventHandler(buttonForNavigation_MouseEnter);
            this.MouseLeave += new MouseEventHandler(buttonForNavigation_MouseLeave);
            this.Margin = new Thickness(-20, 0, 0, 0);
        }

        void buttonForNavigation_MouseLeave(object sender, MouseEventArgs e)
        {
            brdr.Background = Brushes.Azure;
        }

        void buttonForNavigation_MouseEnter(object sender, MouseEventArgs e)
        {
            brdr.Background = Brushes.LightSeaGreen;
        }
    }
}
